package pub.developers.forum.infrastructure.dal.dao;

import org.apache.ibatis.annotations.Param;
import pub.developers.forum.api.model.PageRequestModel;
import pub.developers.forum.domain.entity.Inform;
import pub.developers.forum.infrastructure.dal.dataobject.InformDO;

import java.util.List;

public interface InformDAO {
    //用户举报帖子
    void InsertUserInformPost(InformDO informDO);

    List<Inform> get(@Param("id") Long id , @Param("type") String type);
    //管理员查看所有未被处理的举报信息
    List<Inform> selectNoDispose(PageRequestModel page);

    void save(Inform inform);

    //根据被举报的帖子的id 查看被举报的帖子的内容
    List<Inform> getInformedInform(@Param("informed") long informed);

    //分页查询时的总数
    Long getAllInformedInformation(PageRequestModel page);
}
